package com.owo.im.http.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 单聊记录
 * </p>
 */
@Schema(title = "单聊记录")
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("im_chat_user_message")
public class ImChatUserMessage implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @Schema(description = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 发送ID
     */
    @Schema(description = "发送ID")
    @TableField("from_id")
    private Integer fromId;

    /**
     * 接收ID
     */
    @Schema(description = "接收ID")
    @TableField("to_id")
    private Integer toId;

    /**
     * 内容
     */
    @Schema(description = "内容")
    @TableField("content")
    private String content;

    /**
     * 是否已读[0:未读，1:已读]
     */
    @Schema(description = "是否已读[0:未读，1:已读]")
    @TableField("message_status")
    private Boolean messageStatus;

    /**
     * 创建时间
     */
    @Schema(description = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;


}
